package com.weimengchao.redisson.test;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @description:
 * @author: 魏孟超
 * @createDate: 2021-11-22 23:36
 */
@Component
@RefreshScope
@Data
public class MyProperties implements Serializable {

    @Value("${config.id}")
    private Integer id;
    @Value("${config.name}")
    private String name;
}
